<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>循环中断</title>
</head>
<body>
<script>
 document.write("break中断操作输出结果：<br/>")
  for(var i=0;i<5;i++){
      if(i==3){
          break;
      }
      document.write("这个数字是："+i+"<br/>")
  }
  document.write("<br/>")
  document.write("continue中断操作输出结果：<br/>")
   for(var i=0;i<5;i++){
       if(i==2){
           continue;
       }
       document.write("这个数字是："+i+"<br/>")
   }
</script>
</body>
</html>